package remember;

import java.util.Date;
import java.text.SimpleDateFormat;

public class LogUtil {
    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static void log(String message, String operator) {
        String log = String.format("[%s] 操作员<%s>：%s", sdf.format(new Date()), operator, message);
        System.out.println("日志记录：" + log);
        // 实际应用中可写入文件
    }
}